<%namespace name="commons" file="commons.html"/>
<%include file='header.html'/>
${commons.search(q)}

% for r in sr:
    ${makeres(r)}
% endfor

<%def name="makeres(result)">
<div>
<br style='clear:both'>

<hr>
<i>title:</i> ${result.title.text}
<br><i>authors:</i> 
% for auth in result.author:
    ${auth.name.text}
% endfor
<br>
% for att in result.attribute:
    ${att.name}: ${att.text} <br>
% endfor
<br>rating: ${result.rating.min}-${result.rating.max} ~${result.rating.average} n:${result.rating.numRaters}
<dl class="obs"><dt>
<div class="gact"><a href="collection?sid=${result.id.text}">想看</a></div>
<a href="${result.GetAlternateLink().href}" 
    title="$(result.title.text)">
    <img src="${((len(result.link) >= 3) and result.link[2].href) or ''}" class="m_sub_img"/>
</a>
</dt><dd>
<a href="${result.GetAlternateLink().href}">${result.title.text}</a>
</dd>
</dl>
</div>
</%def>
<%include file='footer.html'/>
